package com.csun.cmny.provider.model.dto;

import com.csun.cmny.provider.model.domain.OmcRoomAssignment;
import com.csun.cmny.provider.validator.RoomAssignmentListAddValid;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

@Data
public class RoomAssignmentListDto implements Serializable {

    private static final long serialVersionUID = -7181426117618284274L;


    @Pattern(regexp = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])"
            + "|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|"
            + "[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$", message = "日期格式不正确", groups = {RoomAssignmentListAddValid.class })
    private String date;

    private Integer nursingGroupId;

    private Integer shiftsId;

    private List<OmcRoomAssignment> roomAssList;

}
